//
//  STAAlertView.h
//  Staff
//
//  Created by caiyao on 12/3/14.
//
//

#import <UIKit/UIKit.h>

@protocol STAAlertViewDelegate <NSObject>
@optional
- (void)cancelButtonClicked;
- (void)okButtonClicked;
@end

@interface STAAlertView : UIView {
    IBOutlet UILabel *titleLabel;
    IBOutlet UILabel *contentLabel;
    IBOutlet UIButton *cancelButton;
    IBOutlet UIButton *okButton;
    IBOutlet UIView *line;
    IBOutlet UIActivityIndicatorView *indicator;
}

- (IBAction)okAction:(id)sender;
- (IBAction)cancelAction:(id)sender;


@property (nonatomic, assign) id<STAAlertViewDelegate> delegate;

- (void)settitle:(NSString *)title message:(NSString *)message cancelButton:(NSString *)cancelButtonTitle okButton:(NSString *)okButtonTitle delegate:(id<STAAlertViewDelegate>)delegate;
- (void)startDownloadingWithTitle:(NSString *)title cancelButton:(NSString *)cancelButtonTitle delegate:(id<STAAlertViewDelegate>)delegate;

@end
